#pragma once
#include "simu_ec800.h"

typedef enum
{
    QL_FILE_OK = 0,

    QL_FILE_INVALID_INPUT_VALUE = (QL_COMPONENT_STORAGE_FILE << 16) | 400,     /* invalid input value       */
    QL_FILE_LARGER_THAN_FILESIZE = (QL_COMPONENT_STORAGE_FILE << 16) | 401,     /* large than file size      */
    QL_FILE_READ_ZERO = (QL_COMPONENT_STORAGE_FILE << 16) | 402,     /* read zero byte            */
    QL_FILE_DRIVE_FULL = (QL_COMPONENT_STORAGE_FILE << 16) | 403,     /* drive full                */
    QL_FILE_MOV_ERROR = (QL_COMPONENT_STORAGE_FILE << 16) | 404,     /* move error                */
    QL_FILE_FILE_NOT_FOUND = (QL_COMPONENT_STORAGE_FILE << 16) | 405,     /* file not found            */
    QL_FILE_INVALID_FILE_NAME = (QL_COMPONENT_STORAGE_FILE << 16) | 406,     /* invalidate file name      */
    QL_FILE_FILE_ALREADY_EXISTED = (QL_COMPONENT_STORAGE_FILE << 16) | 407,     /* file already exist        */
    QL_FILE_FAILED_TO_CREATE_FILE = (QL_COMPONENT_STORAGE_FILE << 16) | 408,     /* failed to create file     */
    QL_FILE_FAILED_TO_WRITE_FILE = (QL_COMPONENT_STORAGE_FILE << 16) | 409,     /* failed to write file      */
    QL_FILE_FAILED_TO_OPEN_FILE = (QL_COMPONENT_STORAGE_FILE << 16) | 410,     /* failed to open file       */
    QL_FILE_FAILED_TO_READ_FILE = (QL_COMPONENT_STORAGE_FILE << 16) | 411,     /* failed to read file       */
    QL_FILE_EXCEED_MAX_LENGTH = (QL_COMPONENT_STORAGE_FILE << 16) | 412,     /* exceed max length         */
    QL_FILE_REACH_MAX_OPENFILE_NUM = (QL_COMPONENT_STORAGE_FILE << 16) | 413,     /* reach max opened file num */
    QL_FILE_IS_READONLY = (QL_COMPONENT_STORAGE_FILE << 16) | 414,     /* file is the read-only     */
    QL_FILE_GET_SIZE_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 415,     /* get file size failed      */
    QL_FILE_INVALID_FILE_DESCRIPTOR = (QL_COMPONENT_STORAGE_FILE << 16) | 416,     /* description invalidate    */
    QL_FILE_LIST_FILE_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 417,     /* failed to list file       */
    QL_FILE_DELETE_FILE_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 418,     /* failed to delete file     */
    QL_FILE_GET_DISK_INFO_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 419,     /* failed to get disk info   */
    QL_FILE_NO_SPACE = (QL_COMPONENT_STORAGE_FILE << 16) | 420,     /* disk no space             */
    QL_FILE_TIME_OUT = (QL_COMPONENT_STORAGE_FILE << 16) | 421,     /*time out                  */
    QL_FILE_FILE_NOT_FOUND_2 = (QL_COMPONENT_STORAGE_FILE << 16) | 422,     /* file not found            */
    QL_FILE_FILE_TOO_LARGE = (QL_COMPONENT_STORAGE_FILE << 16) | 423,     /* file too large            */
    QL_FILE_FILE_ALREADY_EXIST = (QL_COMPONENT_STORAGE_FILE << 16) | 424,     /* file already exist        */
    QL_FILE_INVALID_PARAMETER = (QL_COMPONENT_STORAGE_FILE << 16) | 425,     /* invalidate parameter      */
    QL_FILE_ALREADY_OPERATION = (QL_COMPONENT_STORAGE_FILE << 16) | 426,     /* file already open         */
    QL_FILE_ERROR_GENERAL = (QL_COMPONENT_STORAGE_FILE << 16) | 427,
    QL_FILE_RENAME_ERROR = (QL_COMPONENT_STORAGE_FILE << 16) | 428,
    QL_FILE_QUIT_DATE_MODE = (QL_COMPONENT_STORAGE_FILE << 16) | 429,
    QL_FILE_CLOSE_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 430,
    QL_FILE_SEEK_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 431,
    QL_FILE_TELL_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 432,
    QL_FILE_FAILED_TO_GET_STAT = (QL_COMPONENT_STORAGE_FILE << 16) | 433,
    QL_FILE_NOT_EXIST = (QL_COMPONENT_STORAGE_FILE << 16) | 434,
    QL_RENAME_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 435,
    QL_FILE_TRUNCATE_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 436,
    QL_FILE_NOT_OPEN = (QL_COMPONENT_STORAGE_FILE << 16) | 437,
    QL_FILE_DEVICE_READONLY = (QL_COMPONENT_STORAGE_FILE << 16) | 438,

    QL_FILE_CREATE_EXCEED = (QL_COMPONENT_STORAGE_FILE << 16) | 450,     /* create too many files     */

    QUEC_FILE_ZIP_INVALID_FILE_NAME = (QL_COMPONENT_STORAGE_FILE << 16) | 439,
    QUEC_FILE_ZIP_FILE_NOT_FOUND = (QL_COMPONENT_STORAGE_FILE << 16) | 440,
    QUEC_FILE_ZIP_DEL_ERROR = (QL_COMPONENT_STORAGE_FILE << 16) | 441,
    QUEC_FILE_ZIP_UNZIP_ERROR = (QL_COMPONENT_STORAGE_FILE << 16) | 442,

    QL_DIR_MAKE_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 600,
    QL_DIR_OPEN_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 601,
    QL_DIR_CLOSE_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 602,
    QL_DIR_READ_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 603,
    QL_DIR_TELL_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 604,
    QL_DIR_SEEK_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 605,
    QL_DIR_REMOVE_FAIL = (QL_COMPONENT_STORAGE_FILE << 16) | 606,
    QL_DIR_DIR_ALREADY_EXIST = (QL_COMPONENT_STORAGE_FILE << 16) | 607,
    QL_DIR_DIR_NOT_EXIST = (QL_COMPONENT_STORAGE_FILE << 16) | 608,


    QL_FILE_ERROR_MAX,
}ql_file_errcode_e;

